<?php
// 删除购物车信息
// header("content-type:text/html;charset=utf-8");
include_once("conn.php");

$id = $_GET['id'];

$sql = "DELETE FROM tb_cart_info WHERE id = '".$id."'";

$result = mysqli_query($conn, $sql);

if($result){
    echo "<script>window.location.href='../u_mycart.php';</script>";
}else{
    echo "<script>alert('删除失败');history.go(-1);</script>";
}